<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@  taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<%@ include file="common/head.jsp"%>

<body class="fix-header fix-sidebar">

	<!-- Preloader - style you can find in spinners.css -->
	<div class="preloader">
		<svg class="circular" viewBox="25 25 50 50">
				<circle class="path" cx="50" cy="50" r="20" fill="none"
				stroke-width="2" stroke-miterlimit="10" /> </svg>
	</div>
	<!-- Main wrapper  -->
	<div id="main-wrapper">
		<!-- header header  -->
		<%@ include file="common/header.jsp"%>
		<!-- End header header -->
		<!-- Left Sidebar  -->
		<%@ include file="common/nav.jsp"%>
		<!-- End Left Sidebar  -->
		<!-- 内容开始  -->
		<div class="page-wrapper">


			<!-- 锐高软件 -->
			<%@ include file="../common/ruigao.jsp"%>

			<div class="container-fluid">
				<!-- Start Page Content -->
				<div class="row justify-content-center">
					<div class="col-12">
						<div class="card">
							<div class="card-body">
								<div class="card-content">
									<!-- Left sidebar -->
									<div class="inbox-leftbar">

										<a href="${pageContext.request.contextPath}/userServlet"
											class="btn btn-danger btn-block waves-effect waves-light">员工列表</a>
									</div>
									<!-- End Left sidebar -->
									<div class="inbox-rightbar">

										<div class="m-t-10 m-b-20" role="toolbar">
											<div class="btn-group">
												<button type="button" class="btn btn-light waves-effect">
													<i class="mdi mdi-archive font-18 vertical-middle"></i>
												</button>
												<button type="button" class="btn btn-light waves-effect">
													<i class="mdi mdi-alert-octagon font-18 vertical-middle"></i>
												</button>
												<button type="button" class="btn btn-light waves-effect">
													<i class="mdi mdi-delete-variant font-18 vertical-middle"></i>
												</button>
											</div>

											
										</div>

										<div class="form-validation">
											<form class="form-valide col-lg-8" action="#" method="post"
												novalidate="novalidate" style="margin: 0 auto;">
												<c:forEach var="user" items="${userlist}">
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-username">姓名
														</label>
														<div class="col-lg-10">
															<input type="text" class="form-control" id="val-username"
																name="val-username" value="${user.userName}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-username">登陆名
														</label>
														<div class="col-lg-10">
															<input type="text" class="form-control"
																id="val-loginname" name="val-loginname"
																value="${user.loginName}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-username">登陆密码
														</label>
														<div class="col-lg-10">
															<input type="password" class="form-control"
																id="val-loginpwd" name="val-loginpwd"
																value="${user.loginPwd}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-email">邮箱
														</label>
														<div class="col-lg-10">
															<input type="text" class="form-control" id="val-email"
																name="val-email" value="${user.userEmail}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-password">性别</label>
														<div class="col-lg-10">
															<select class="form-control" id="val-sex"
																name="val-skill" disabled="disabled">

																<c:choose>
																	<c:when test="${user.userSex eq 1}">
																		<option value="${user.userSex}">男</option>
																	</c:when>
																	<c:when test="${user.userSex eq 2}">
																		<option value="${user.userSex}">女</option>
																	</c:when>
																</c:choose>

															</select>
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-phone">手机号
														</label>
														<div class="col-lg-10">
															<input type="text" class="form-control" id="val-phone"
																name="val-phone" value="${user.userPhone}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label"
															for="val-suggestions">地址 </label>
														<div class="col-lg-10">

															<input type="text" class="form-control" id="val-aress"
																name="val-aress" value="${user.userAddress}" readonly="">


														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-skill">部门
														</label>
														<div class="col-lg-10">
															<select class="form-control" id="val-part"
																name="val-dept" disabled="disabled">

																<c:forEach items="${deptList}" var="depts">
																	<c:if test="${depts.deptId eq user.deptId }">
																		<td>${depts.deptName }</td>
																		<option value="">${depts.deptName }</option>
																	</c:if>
																</c:forEach>

															</select>
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-currency">身份证号
														</label>
														<div class="col-lg-10">
															<input type="text" class="form-control" id="val-currency"
																name="val-currency" value="${user.userIdentitycard}"
																readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-phone">家属联系</label>
														<div class="col-lg-10">
															<input type="text" class="form-control"
																id="val-familyphone" name="val-familyphone"
																value="${user.userFamilyphone}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-number">出生年月</label>
														<div class="col-lg-10">
															<input type="text" class="form-control" name="form-date"
																value="${user.userEntrytime}" readonly="">
														</div>
													</div>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-phoneus">学历
														</label>
														<div class="col-lg-10">
															<select class="form-control" id="val-userDiploma"
																name="val-userDiploma" disabled="disabled">
																<option value="${user.userDiploma}">${user.userDiploma}</option>


															</select>
														</div>
													</div>



													<div class="form-group row">
														<label class="col-lg-2 col-form-lab-el" for="val-digits">职位
														</label>
														<div class="col-lg-10">
															<input type="text" class="form-control" id="val-digits"
																name="val-digits" value="${user.userPosition}"
																readonly="">
														</div>
													</div>


													<%@ include file="listall/companyall.jsp"%>
													<div class="form-group row">
														<label class="col-lg-2 col-form-label" for="val-digits">所属公司
														</label>
														<div class="col-lg-10">
															<c:forEach var="companyitem" items="${selectcompany}">
																<c:if test="${user.companyId eq companyitem.companyId}">

																	<input type="text" class="form-control"
																		id="val-company" name="val-company"
																		id="${companyitem.companyId}"
																		value="${companyitem.companyName}" readonly="">
																</c:if>
															</c:forEach>


														</div>
													</div>




												</c:forEach>
											</form>
										</div>

									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- End PAge Content -->
			</div>

		</div>
	</div>
	<!-- End Container fluid  -->
	<!-- footer -->
	<%@ include file="common/footer.jsp"%>
	<!-- End footer -->
	<!-- End Page wrapper  -->
	<%@ include file="common/js.jsp"%>



</body>

</html>